// File Name: RotatePatternHandler.h

#ifndef ROTATEPATTERNHANDLER_H
#define ROTATEPATTERNHANDLER_H

#include <UIAutomationCore.h>

namespace UIAutomationCPP
{
	public class RotatePatternHandler : public IUIAutomationPatternHandler
	{
		public:
			RotatePatternHandler();
			~RotatePatternHandler();

			STDMETHODIMP CreateClientWrapper(IUIAutomationPatternInstance *pPatternInstance, IUnknown **pClientWrapper);
			STDMETHODIMP Dispatch(IUnknown *pTarget, UINT index, const struct UIAutomationParameter *pParams, UINT cParams);

			HRESULT __stdcall QueryInterface(REFIID riid, void **ppvObj);
			ULONG __stdcall AddRef();
			ULONG __stdcall Release();

		private:
			IUIAutomationPatternInstance *_pInstance;
			ULONG refCount;
	};
}
#endif
